#
# Be sure to run `pod lib lint SPUIKitCategory.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'SPKit'
    s.version          = '1.2.1'
    s.summary          = 'SPKit包含SPFoundationCategory与SPUIKitCategory'
    s.description      = <<-DESC
    SPKit包含SPFoundationCategory与SPUIKitCategory，分别是Foundation的分类集合与UIKit的分类集合
    DESC

    s.homepage         = 'https://gitee.com/1210233'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { '1210233' => '1210233@163.com' }
    s.source           = { :git => 'https://gitee.com/1210233/SPKit.git', :tag => s.version.to_s, :submodules => true  }
    s.requires_arc = true

    #//仅支持ios
    s.platform = :ios
    s.ios.deployment_target = '8.0'


    s.prefix_header_contents = <<-EOS
    //#ifdef __OBJC__
    //#import "SPKit.h"    //包含了所有头文件
    //#endif
    EOS


    s.source_files = 'SPKit/*.h'
    s.public_header_files = 'SPKit/*.h'

    s.dependency 'SPFoundationCategory'
    s.dependency 'SPUIKitCategory'
    
    
    s.subspec 'SPModelBase' do |ss|
        ss.source_files = 'SPKit/SPModelBase/*.{h,m}'
        ss.public_header_files = 'SPKit/SPModelBase/*.h'
    end

    s.subspec 'SPErrorReporter' do |ss|
        ss.source_files = 'SPKit/SPErrorReporter/*.{h,m}'
        ss.public_header_files = 'SPKit/SPErrorReporter/*.h'
        ss.dependency 'SPKit/SPModelBase'
        ss.frameworks = 'SystemConfiguration'
    end

    s.subspec 'SPExtendClasses' do |ss|
        ss.source_files = 'SPKit/SPExtendClasses/*.{h,m}'
        ss.public_header_files = 'SPKit/SPExtendClasses/*.h'
        ss.dependency 'FDFullscreenPopGesture'
    end

    s.subspec 'SPBaseClasses' do |ss|
       ss.source_files = 'SPKit/SPBaseClasses/*.{h,m}'
       ss.public_header_files = 'SPKit/SPBaseClasses/*.h'
       ss.dependency 'SPKit/SPExtendClasses'
       ss.dependency 'SPFoundationCategory'
       ss.dependency 'SPUIKitCategory'
    end

end
